<extend name="Common/common"/>
<block name="main">
    <div class="right-title">诊疗记录</div>
    <div class="right-search">
        <form action="#" method="get" class="search-form">
            <input type="hidden" name="o" value="1">
            <div class="search-input-wrap">
                <i class="arrow"></i>
                <input autocomplete="off" class="search-input"  id="name" value="{$name}" placeholder="输入患者名" type="text" maxlength="50">
            </div>
            <a href="javascript:;" class="search-btn" id="search">查询</a>
        </form>
    </div>
    <div class="right-content">
        <div class="adjsuttwo-title">
            <span class="creatapply click" id="add" onclick="location.href='{:U('treatmentcount')}'">诊疗数据</span>
        </div>
        <p class="patinent_title">&nbsp;</p>
        <table border="0" class="patinet-content">
            <tr class="patient">
                <td>患者</td>
                <td>病情症状</td>
                <td>诊断结果</td>
                <td>用药及处方</td>
                <td>日期</td>
                <td>状态</td>
            </tr>
            <volist name="list" id="vo">
                <tr class="patient nobg">
                    <td>{$vo.name}</td>
                    <td>{$vo.symptom|mbSub=###,0,6}</td>
                    <td>{$vo.treatment|mbSub=###,0,6}</td>
                    <td>{$vo.recipe|mbSub=###,0,6}</td>
                    <td>{$vo.treat_time}</td>
                    <td>
                        {:$vo['status']==1?'未评价':'已评价'}
                    </td>
                </tr>
            </volist>
        </table>
        <div class="page">{$pageHtml}</div>
    </div>
</block>
<block name="css"></block>
<block name="js">
    <script type="text/javascript">
        $(function(){
            //搜索患者
            $('#search').click(function () {
                var name = $('#name').val();
                var url = '{:U("treatmentlist")}';
                if(name){
                    url += '?name='+name;
                }
                location.href = url;
            });
        });
    </script>
</block>